Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 3 - Standard Image-Compression Dialog Components / Standard Image-Compression Dialog Components Reference
Standard Image-Compression Dialog Component Functions / Compressing Still Images


SCCompressPictureFile

The SCCompressPictureFile function compresses a picture that is stored in a file.

pascal ComponentResult SCCompressPictureFile 
                              (ComponentInstance ci, 
                               short srcRefNum, short dstRefNum);
ci
Identifies your application's connection to a standard image-compression dialog component.
srcRefNum
Contains a reference to the file to be compressed.
dstRefNum
Contains a reference to the file that is to receive the compressed data. This may be the same as the source file. The standard dialog component places the compressed image data into the file identified by this reference. Your application is responsible for this file after the compression operation.
RESULT CODES
scUserCancelled1Dialog box canceled--user clicked Cancel
Image Compression Manager errors (from FCompressPictureFile function)


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help